var path = require('path')
module.exports = {
    target: 'node',
    entry: './index.js',
    output: {
        filename: 'klps.js',
        path: path.resolve(__dirname, 'dist'),
        library: 'klps',
        libraryTarget: 'umd'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            loader: 'babel-loader',
            query: {
                presets: ['es2015']
            }
        }]
    }
}